﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class UnityEngineRenderingStencilStateWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(UnityEngine.Rendering.StencilState);
			Utils.BeginObjectRegister(type, L, translator, 1, 6, 11, 11);
			Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta);
            
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetCompareFunction", _m_SetCompareFunction);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPassOperation", _m_SetPassOperation);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetFailOperation", _m_SetFailOperation);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetZFailOperation", _m_SetZFailOperation);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "readMask", _g_get_readMask);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "writeMask", _g_get_writeMask);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "compareFunctionFront", _g_get_compareFunctionFront);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "passOperationFront", _g_get_passOperationFront);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "failOperationFront", _g_get_failOperationFront);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "zFailOperationFront", _g_get_zFailOperationFront);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "compareFunctionBack", _g_get_compareFunctionBack);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "passOperationBack", _g_get_passOperationBack);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "failOperationBack", _g_get_failOperationBack);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "zFailOperationBack", _g_get_zFailOperationBack);
            
			Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "readMask", _s_set_readMask);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "writeMask", _s_set_writeMask);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "compareFunctionFront", _s_set_compareFunctionFront);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "passOperationFront", _s_set_passOperationFront);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "failOperationFront", _s_set_failOperationFront);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "zFailOperationFront", _s_set_zFailOperationFront);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "compareFunctionBack", _s_set_compareFunctionBack);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "passOperationBack", _s_set_passOperationBack);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "failOperationBack", _s_set_failOperationBack);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "zFailOperationBack", _s_set_zFailOperationBack);
            
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0);
			
			
            
			Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultValue", _g_get_defaultValue);
            
			
			
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 8 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable<UnityEngine.Rendering.CompareFunction>(L, 5) && translator.Assignable<UnityEngine.Rendering.StencilOp>(L, 6) && translator.Assignable<UnityEngine.Rendering.StencilOp>(L, 7) && translator.Assignable<UnityEngine.Rendering.StencilOp>(L, 8))
				{
					bool _enabled = LuaAPI.lua_toboolean(L, 2);
					byte _readMask = (byte)LuaAPI.xlua_tointeger(L, 3);
					byte _writeMask = (byte)LuaAPI.xlua_tointeger(L, 4);
					UnityEngine.Rendering.CompareFunction _compareFunction;translator.Get(L, 5, out _compareFunction);
					UnityEngine.Rendering.StencilOp _passOperation;translator.Get(L, 6, out _passOperation);
					UnityEngine.Rendering.StencilOp _failOperation;translator.Get(L, 7, out _failOperation);
					UnityEngine.Rendering.StencilOp _zFailOperation;translator.Get(L, 8, out _zFailOperation);
					
					var gen_ret = new UnityEngine.Rendering.StencilState(_enabled, _readMask, _writeMask, _compareFunction, _passOperation, _failOperation, _zFailOperation);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 7 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable<UnityEngine.Rendering.CompareFunction>(L, 5) && translator.Assignable<UnityEngine.Rendering.StencilOp>(L, 6) && translator.Assignable<UnityEngine.Rendering.StencilOp>(L, 7))
				{
					bool _enabled = LuaAPI.lua_toboolean(L, 2);
					byte _readMask = (byte)LuaAPI.xlua_tointeger(L, 3);
					byte _writeMask = (byte)LuaAPI.xlua_tointeger(L, 4);
					UnityEngine.Rendering.CompareFunction _compareFunction;translator.Get(L, 5, out _compareFunction);
					UnityEngine.Rendering.StencilOp _passOperation;translator.Get(L, 6, out _passOperation);
					UnityEngine.Rendering.StencilOp _failOperation;translator.Get(L, 7, out _failOperation);
					
					var gen_ret = new UnityEngine.Rendering.StencilState(_enabled, _readMask, _writeMask, _compareFunction, _passOperation, _failOperation);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable<UnityEngine.Rendering.CompareFunction>(L, 5) && translator.Assignable<UnityEngine.Rendering.StencilOp>(L, 6))
				{
					bool _enabled = LuaAPI.lua_toboolean(L, 2);
					byte _readMask = (byte)LuaAPI.xlua_tointeger(L, 3);
					byte _writeMask = (byte)LuaAPI.xlua_tointeger(L, 4);
					UnityEngine.Rendering.CompareFunction _compareFunction;translator.Get(L, 5, out _compareFunction);
					UnityEngine.Rendering.StencilOp _passOperation;translator.Get(L, 6, out _passOperation);
					
					var gen_ret = new UnityEngine.Rendering.StencilState(_enabled, _readMask, _writeMask, _compareFunction, _passOperation);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable<UnityEngine.Rendering.CompareFunction>(L, 5))
				{
					bool _enabled = LuaAPI.lua_toboolean(L, 2);
					byte _readMask = (byte)LuaAPI.xlua_tointeger(L, 3);
					byte _writeMask = (byte)LuaAPI.xlua_tointeger(L, 4);
					UnityEngine.Rendering.CompareFunction _compareFunction;translator.Get(L, 5, out _compareFunction);
					
					var gen_ret = new UnityEngine.Rendering.StencilState(_enabled, _readMask, _writeMask, _compareFunction);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
				{
					bool _enabled = LuaAPI.lua_toboolean(L, 2);
					byte _readMask = (byte)LuaAPI.xlua_tointeger(L, 3);
					byte _writeMask = (byte)LuaAPI.xlua_tointeger(L, 4);
					
					var gen_ret = new UnityEngine.Rendering.StencilState(_enabled, _readMask, _writeMask);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
				{
					bool _enabled = LuaAPI.lua_toboolean(L, 2);
					byte _readMask = (byte)LuaAPI.xlua_tointeger(L, 3);
					
					var gen_ret = new UnityEngine.Rendering.StencilState(_enabled, _readMask);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
				{
					bool _enabled = LuaAPI.lua_toboolean(L, 2);
					
					var gen_ret = new UnityEngine.Rendering.StencilState(_enabled);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new UnityEngine.Rendering.StencilState();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 12 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable<UnityEngine.Rendering.CompareFunction>(L, 5) && translator.Assignable<UnityEngine.Rendering.StencilOp>(L, 6) && translator.Assignable<UnityEngine.Rendering.StencilOp>(L, 7) && translator.Assignable<UnityEngine.Rendering.StencilOp>(L, 8) && translator.Assignable<UnityEngine.Rendering.CompareFunction>(L, 9) && translator.Assignable<UnityEngine.Rendering.StencilOp>(L, 10) && translator.Assignable<UnityEngine.Rendering.StencilOp>(L, 11) && translator.Assignable<UnityEngine.Rendering.StencilOp>(L, 12))
				{
					bool _enabled = LuaAPI.lua_toboolean(L, 2);
					byte _readMask = (byte)LuaAPI.xlua_tointeger(L, 3);
					byte _writeMask = (byte)LuaAPI.xlua_tointeger(L, 4);
					UnityEngine.Rendering.CompareFunction _compareFunctionFront;translator.Get(L, 5, out _compareFunctionFront);
					UnityEngine.Rendering.StencilOp _passOperationFront;translator.Get(L, 6, out _passOperationFront);
					UnityEngine.Rendering.StencilOp _failOperationFront;translator.Get(L, 7, out _failOperationFront);
					UnityEngine.Rendering.StencilOp _zFailOperationFront;translator.Get(L, 8, out _zFailOperationFront);
					UnityEngine.Rendering.CompareFunction _compareFunctionBack;translator.Get(L, 9, out _compareFunctionBack);
					UnityEngine.Rendering.StencilOp _passOperationBack;translator.Get(L, 10, out _passOperationBack);
					UnityEngine.Rendering.StencilOp _failOperationBack;translator.Get(L, 11, out _failOperationBack);
					UnityEngine.Rendering.StencilOp _zFailOperationBack;translator.Get(L, 12, out _zFailOperationBack);
					
					var gen_ret = new UnityEngine.Rendering.StencilState(_enabled, _readMask, _writeMask, _compareFunctionFront, _passOperationFront, _failOperationFront, _zFailOperationFront, _compareFunctionBack, _passOperationBack, _failOperationBack, _zFailOperationBack);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
				if (LuaAPI.lua_gettop(L) == 1)
				{
				    translator.Push(L, default(UnityEngine.Rendering.StencilState));
			        return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
			}
            return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rendering.StencilState constructor!");
            
        }
        
		
        
		
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __EqMeta(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
			
				if (translator.Assignable<UnityEngine.Rendering.StencilState>(L, 1) && translator.Assignable<UnityEngine.Rendering.StencilState>(L, 2))
				{
					UnityEngine.Rendering.StencilState leftside;translator.Get(L, 1, out leftside);
					UnityEngine.Rendering.StencilState rightside;translator.Get(L, 2, out rightside);
					
					LuaAPI.lua_pushboolean(L, leftside == rightside);
					
					return 1;
				}
            
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
			}
            return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.Rendering.StencilState!");
            
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetCompareFunction(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
            
            
                
                {
                    UnityEngine.Rendering.CompareFunction _value;translator.Get(L, 2, out _value);
                    
                    gen_to_be_invoked.SetCompareFunction( _value );
                    
                    
                        translator.Update(L, 1, gen_to_be_invoked);
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetPassOperation(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
            
            
                
                {
                    UnityEngine.Rendering.StencilOp _value;translator.Get(L, 2, out _value);
                    
                    gen_to_be_invoked.SetPassOperation( _value );
                    
                    
                        translator.Update(L, 1, gen_to_be_invoked);
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetFailOperation(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
            
            
                
                {
                    UnityEngine.Rendering.StencilOp _value;translator.Get(L, 2, out _value);
                    
                    gen_to_be_invoked.SetFailOperation( _value );
                    
                    
                        translator.Update(L, 1, gen_to_be_invoked);
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetZFailOperation(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
            
            
                
                {
                    UnityEngine.Rendering.StencilOp _value;translator.Get(L, 2, out _value);
                    
                    gen_to_be_invoked.SetZFailOperation( _value );
                    
                    
                        translator.Update(L, 1, gen_to_be_invoked);
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Equals(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& translator.Assignable<UnityEngine.Rendering.StencilState>(L, 2)) 
                {
                    UnityEngine.Rendering.StencilState _other;translator.Get(L, 2, out _other);
                    
                        var gen_ret = gen_to_be_invoked.Equals( _other );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                        translator.Update(L, 1, gen_to_be_invoked);
                    
                    
                    return 1;
                }
                if(gen_param_count == 2&& translator.Assignable<object>(L, 2)) 
                {
                    object _obj = translator.GetObject(L, 2, typeof(object));
                    
                        var gen_ret = gen_to_be_invoked.Equals( _obj );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                        translator.Update(L, 1, gen_to_be_invoked);
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rendering.StencilState.Equals!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetHashCode(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.GetHashCode(  );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    
                    
                        translator.Update(L, 1, gen_to_be_invoked);
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_defaultValue(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    translator.Push(L, UnityEngine.Rendering.StencilState.defaultValue);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_enabled(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_readMask(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.readMask);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_writeMask(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.writeMask);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_compareFunctionFront(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                translator.PushUnityEngineRenderingCompareFunction(L, gen_to_be_invoked.compareFunctionFront);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_passOperationFront(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                translator.PushUnityEngineRenderingStencilOp(L, gen_to_be_invoked.passOperationFront);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_failOperationFront(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                translator.PushUnityEngineRenderingStencilOp(L, gen_to_be_invoked.failOperationFront);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_zFailOperationFront(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                translator.PushUnityEngineRenderingStencilOp(L, gen_to_be_invoked.zFailOperationFront);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_compareFunctionBack(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                translator.PushUnityEngineRenderingCompareFunction(L, gen_to_be_invoked.compareFunctionBack);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_passOperationBack(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                translator.PushUnityEngineRenderingStencilOp(L, gen_to_be_invoked.passOperationBack);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_failOperationBack(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                translator.PushUnityEngineRenderingStencilOp(L, gen_to_be_invoked.failOperationBack);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_zFailOperationBack(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                translator.PushUnityEngineRenderingStencilOp(L, gen_to_be_invoked.zFailOperationBack);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_enabled(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2);
            
                translator.Update(L, 1, gen_to_be_invoked);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_readMask(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                gen_to_be_invoked.readMask = (byte)LuaAPI.xlua_tointeger(L, 2);
            
                translator.Update(L, 1, gen_to_be_invoked);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_writeMask(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                gen_to_be_invoked.writeMask = (byte)LuaAPI.xlua_tointeger(L, 2);
            
                translator.Update(L, 1, gen_to_be_invoked);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_compareFunctionFront(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                UnityEngine.Rendering.CompareFunction gen_value;translator.Get(L, 2, out gen_value);
				gen_to_be_invoked.compareFunctionFront = gen_value;
            
                translator.Update(L, 1, gen_to_be_invoked);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_passOperationFront(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                UnityEngine.Rendering.StencilOp gen_value;translator.Get(L, 2, out gen_value);
				gen_to_be_invoked.passOperationFront = gen_value;
            
                translator.Update(L, 1, gen_to_be_invoked);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_failOperationFront(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                UnityEngine.Rendering.StencilOp gen_value;translator.Get(L, 2, out gen_value);
				gen_to_be_invoked.failOperationFront = gen_value;
            
                translator.Update(L, 1, gen_to_be_invoked);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_zFailOperationFront(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                UnityEngine.Rendering.StencilOp gen_value;translator.Get(L, 2, out gen_value);
				gen_to_be_invoked.zFailOperationFront = gen_value;
            
                translator.Update(L, 1, gen_to_be_invoked);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_compareFunctionBack(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                UnityEngine.Rendering.CompareFunction gen_value;translator.Get(L, 2, out gen_value);
				gen_to_be_invoked.compareFunctionBack = gen_value;
            
                translator.Update(L, 1, gen_to_be_invoked);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_passOperationBack(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                UnityEngine.Rendering.StencilOp gen_value;translator.Get(L, 2, out gen_value);
				gen_to_be_invoked.passOperationBack = gen_value;
            
                translator.Update(L, 1, gen_to_be_invoked);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_failOperationBack(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                UnityEngine.Rendering.StencilOp gen_value;translator.Get(L, 2, out gen_value);
				gen_to_be_invoked.failOperationBack = gen_value;
            
                translator.Update(L, 1, gen_to_be_invoked);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_zFailOperationBack(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                UnityEngine.Rendering.StencilState gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                UnityEngine.Rendering.StencilOp gen_value;translator.Get(L, 2, out gen_value);
				gen_to_be_invoked.zFailOperationBack = gen_value;
            
                translator.Update(L, 1, gen_to_be_invoked);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 0;
        }
        
		
		
		
		
    }
}
